<template>
    <List v-if="list.length" @scrolltolower="scrolltolower" :scrollTop="scrollTop">
      <view class="u-demo-block" v-for="item in list" :key="item._id">
        <NewsItem :data="item"></NewsItem>
      </view>
    </List>
    <u-empty v-else mode="news" icon="http://cdn.uviewui.com/uview/empty/news.png"></u-empty>
</template>

<script>
  export default {
    props: {
      list: Array
    },
    data() {
      return {
        status: 'loadmore',
        scrollTop: 0
      }
    },
    methods: {
      scrolltolower() {}
    }
  }
</script>

<style>
</style>
